//
//  ARCPerson.m
//  Effective Objective-C 2.0
//
//  Created by 周成龙 on 2017/12/11.
//  Copyright © 2017年 周成龙. All rights reserved.
//

#import "ARCPerson.h"

@implementation ARCPerson

+ (ARCPerson *)newPerson {
    return [[self alloc] init];
}
+ (ARCPerson *)somePerson {
    return [[[self alloc] init] autorelease];
}

- (void)doSomething {
    ARCPerson *p1 = [ARCPerson newPerson];
    ARCPerson *p2 = [ARCPerson somePerson];
    [p1 release];
}

@end
